<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p>姓名：<input type="text "></p>
		<p>邮箱：<input type="text "></p>
		<p>手机：<input type="text "></p>
		<script>
			var inputs=document.getElementsByTagName('input');
			for (var i=0;i<inputs.length;i++) {
				inputs[i].onkeydown=function(){
					if (event.keyCode==13) {
						for(var k=0;k<inputs.length;k++){
							if (inputs[k]==this) {
								var index=k+1>=inputs.length?0:k+1;
								inputs[index].focus();
							}
						}
					}
				};
			}
		</script>
	</body>
</html>
